<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>

    <title>会员列表</title>

    <link href="<?php echo ADMIN_CSS; ?>/mine.css" type="text/css" rel="stylesheet"/>
</head>
<body>
<style>
    .tr_color {
        background-color: #9F88FF
    }
</style>
<div class="div_head">
            <span>
                <span style="float: left;">当前位置是：权限管理-》分配权限管理【{$role.role_name}】</span>
            </span>
</div>
<div></div>
<div style="font-size: 13px; margin: 10px 5px;">
    <form action="__CONTROLLER__/allocate" method="post">
        <table class="table_a" border="1" width="100%">
            <input type="hidden" name="role_id" value="{$role.role_id}">
            <tbody>
            <foreach name="auth_a" item="a">
                <tr id="product1">
                    <td>
                        <input type="checkbox" name="auth_id[]" value="{$a.auth_id}">{$a.auth_name}
                    </td>
                    <td>
                        <foreach name="auth_b" item="b">
                            <if condition="$b['auth_pid'] eq $a['auth_id']">
                                <div style="display: inline-block;margin-right:20px;">
                                    <input type="checkbox" name="auth_id[]" value="{$b.auth_id}" <?php echo strpos($role['role_auth_ids'],$b['auth_id'])===false?'':'checked';?> >{$b.auth_name}
                                </div>
                            </if>
                        </foreach>
                    </td>
                </tr>
            </foreach>
            <tr>
                <td colspan="2" align="center">
                    <input type="submit" value="添加">
                </td>
            </tr>
            </tbody>
        </table>
    </form>
</div>
</body>
</html>